package com.alifi.crm.dal.lottery;

import org.springframework.stereotype.Repository;

import com.alifi.crm.dal.IbatisCRUDDAO;
import com.alifi.crm.dal.object.EmployeeDO;

@Repository("employeeDAO")
public class EmployeeDAOImpl extends IbatisCRUDDAO<EmployeeDO> implements EmployeeDAO {

    @Override
    protected String getNamespace() {
        return "act_employee";
    }
    
    
    @Override
    public EmployeeDO getEmployeeInfo(String employeeNum) {
        return (EmployeeDO)this.getSqlMapClientTemplate().queryForObject(this.genStmt("selectByEmployeeNum"), employeeNum);
    }

    @Override
    public void updateAvailTime(String employeeNum) {
        this.getSqlMapClientTemplate().update(this.genStmt("updateAvailTime"), employeeNum);
    }


    @Override
    public void updateEmployee(String employeeNum) {
        this.getSqlMapClientTemplate().update(this.genStmt("updateEmployee"), employeeNum);
    }

}
